﻿<Window x:Class="CCSAdmin.Home"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:CCSAdmin="clr-namespace:CCSAdmin"
    Title="CCS Admin" Height="480" Width="640" MinHeight="480" MinWidth="640" xmlns:my="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit">
    <Grid>
        <TabControl Height="Auto" Name="AdminTabs" Width="Auto" TabStripPlacement="Left" SelectionChanged="AdminTabs_SelectionChanged" Visibility="Hidden" Opacity="1">
            <TabItem Header="Users" Name="showUsersTab" Padding="6,6,6,7" FontSize="14">
                <my:DataGrid Height="Auto" Name="userDataGrid" Width="Auto" FontSize="12" IsReadOnly="True" RowHeight="20">
                    <my:DataGrid.Columns>
                        <my:DataGridTemplateColumn>
                            <my:DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <Button Content="Delete" Height="Auto" Command="{x:Static CCSAdmin:Commands.DeleteUserCommand}" CommandParameter="{Binding Email}" Padding="0" FontSize="9"/>
                                </DataTemplate>
                            </my:DataGridTemplateColumn.CellTemplate>
                        </my:DataGridTemplateColumn>
                    </my:DataGrid.Columns>
                </my:DataGrid>
            </TabItem>
            <TabItem Header="Apps" Padding="6,6,6,7" FontSize="14" Name="showAppsTab">
                <my:DataGrid Height="Auto" Name="productDataGrid" Width="Auto" FontSize="12" IsReadOnly="True" RowHeight="20" />
            </TabItem>
        </TabControl>
        <CCSAdmin:Login Width="Auto" Height="Auto" x:Name="LoginControl" LoggedIn="LoginControl_LoggedIn" />
    </Grid>
</Window>
